<template>
	<view>
		<Top pageTitle="首页" :isBack="false" />

		<view style="padding-top: 50upx;"></view>
		<view class="u-page">
			<view class="u-demo-block">
				<view class="u-demo-block__content">
					<view class="album">
						<view class="album__avatar">
							<!-- <u-icon name="chat" color="#00aa00" size="50"></u-icon> -->
							<image :src="urls[0].src" mode="" style="width: 32px;height: 32px;">
							</image>
						</view>
						<view class="album__content">
							<u--text text="xijia-plus-app" type="primary" bold size="17"></u--text>
							<u--text margin="5px 0px 8px 0" text="直接使用全面的组件和便捷的工具会让您信手拈来，如鱼得水 "></u--text>
							<u-album :urls="urls" keyName="src"></u-album>
						</view>
					</view>
				</view>
			</view>
		</view>


		<view style="padding-top: 50upx; padding-left: 100upx;">
			<u-row customStyle="margin-bottom: 10px">
				<u-col span="6">
					<u--text text="采用技术"></u--text>
					<u--text type="primary" size="30" text="uni-app"></u--text>
					<u--text type="primary" size="30" text="vue"></u--text>
					<u--text type="primary" size="30" text="uView"></u--text>
				</u-col>
				<u-col span="6">
					<u--text text="版本"></u--text>
					<u--text type="primary" size="30" text="-"></u--text>
					<u--text type="primary" size="30" text="2"></u--text>
					<u--text type="primary" size="30" text="2.x"></u--text>
				</u-col>
			</u-row>
		</view>

		<view style="padding-top: 50upx; padding-left: 100upx;">
			<u-row customStyle="margin-bottom: 10px">
				<u-col span="6">
					<u--text text="编辑器"></u--text>
					<u--text type="primary" size="30" text="HBuilder"></u--text>
				</u-col>
				<u-col span="6">
					<u--text text="版本"></u--text>
					<u--text type="primary" size="30" text="3.x"></u--text>
				</u-col>
			</u-row>
		</view>
		<Bottom />
	</view>
</template>


<script>
	import bottom from '../base/bottom.vue';
	import top from '../base/top.vue';
	export default {
		//定义组件
		components: {
			Bottom: bottom,
			Top: top,
		},
		data() {
			return {
				albumWidth: 0,
				urls: [{
					src: 'https://cdn.uviewui.com/uview/album/1.jpg',
				}]

			}
		},
		onLoad() {
			this.init();
		},
		// 下拉刷新
		onPullDownRefresh: function() {
			// 停止刷新
			uni.stopPullDownRefresh();
		},
		methods: {
			init() {
				// 字典数据加载
				this.dict.refreshDict();
			},
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F8F9FB;
	}

	.album {
		@include flex;
		align-items: flex-start;

		&__avatar {
			background-color: $u-bg-color;
			padding: 5px;
			border-radius: 3px;
		}

		&__content {
			margin-left: 10px;
			flex: 1;
		}
	}
</style>